# Contributor: Robert Boisvert <rdboisvert@gmail.com>
# Maintainer: Robert Boisvert <rdboisvert@gmail.com>
pkgname=sqliteodbc
pkgver=0.9998
pkgrel=0
pkgdesc="SQLite ODBC driver"
url="http://www.ch-werner.de/sqliteodbc"
arch="all"
license="TCL"
makedepends="libtool sqlite-dev unixodbc-dev"
source="http://www.ch-werner.de/sqliteodbc/sqliteodbc-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	mkdir -p "$pkgdir/usr/lib"
	make DESTDIR="$pkgdir" install
	rm $pkgdir/usr/lib/*.la $pkgdir/usr/lib/*.a
}

sha512sums="6c36cee09a7c300dd81fd70e51e84f0e93f1178393780aae5e982e5af16af7f3abc9dd39d1bdcfa49fb2fc3db3b22331e0019eac4f383da57a21ee4d2057d71f  sqliteodbc-0.9998.tar.gz"
